import type { UserInfoResType } from "~/composables/apis/types/user.type";

export const useUserApi = () => {
  const getUserInfo = () => {
    const { $globalData } = useNuxtApp();
    return useHttp<UserInfoResType>({
      url: `/user/info/${$globalData.userId}`,
    });
  };

  return { getUserInfo };
};
